package cn.szzsi.common.model;

import cn.szzsi.common.kit.CommonUtil;
import cn.szzsi.common.model.base.BaseDeliveryItem;

import java.util.Date;

/**
 * Bean类 - 物流项
 * 
 */
public class DeliveryItem extends BaseDeliveryItem<DeliveryItem> {

	private static final long serialVersionUID = 9117150671194966106L;

	public static final DeliveryItem dao = new DeliveryItem().dao();
	
	// 重写save方法
	public boolean save(DeliveryItem deliveryItem){
		deliveryItem.set("id", CommonUtil.getUUID());
		deliveryItem.set("createDate", new Date());
		return deliveryItem.save();
	}
}
